﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.Domain.Entity
{
    /// <summary>
    /// 角色表
    /// </summary>

    public class Role
    {
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string Id { get; set; }

        public string CreatorUserId { get; set; } = "";

        public bool IsDefault { get; set; } = false;

        //租户Id
        public int TenantId { get; set; } = -1;

        // [BsonElement("Name")] // Name 的属性值表示 MongoDB 集合中的属性名称。

        public string Name { get; set; }

        public string Description { get; set; }
        public string ManageRole { get; set; }
    }
}
